<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-for遍历嵌套-打印乘法表</title>
    <style>
            table,td,th {
                border:2px solid #111;
                border-collapse: collapse;
            }
    </style>
</head>
<body>
    <div id="smartParty">
        <table>
            <tr v-for="i in Number" :key="i">
                <td v-for="j in i" :key="j">{{i}}X{{j}}={{i*j}}</td>
            </tr>
        </table>
    </div>
    <script src="js/vue2.js"></script>
    <script>
        var vue=new Vue({
            el:"#smartParty",
            data:{
                Number:[1,2,3,4,5,6,7,8,9]
            }
        })
    </script>
</body>
</html>